package student.aistar.day06.biz;


/**
 * 本类用来演示:
 *
 * @author: success
 * @date: 2021/7/22 10:14 上午
 */
@SuppressWarnings("all")
public class TestEmpBiz {
    public static void main(String[] args) {
        Emp boss = new Emp(1,"boss",1000.0d,new Emp[0]);
      //定义若干个下属
        Emp e1 = new Emp(2,"小明",2000.0d,null);
        Emp e2 = new Emp(3,"小红",3000.0d,null);
        Emp e3 = new Emp(4,"小黄",4000.0d,null);

        //创建业务类对象
        EmpBiz biz = new EmpBiz();
        biz.addEmp(boss,e1);
        biz.addEmp(boss,e2);
        biz.addEmp(boss,e3);
        biz.delEmpBySalary(boss, 3001.0d);
        biz.printEmp(boss);
    }
}
